package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysYongyouXsfp;
import org.apache.ibatis.annotations.Param;

/**
 * 销售发票Mapper接口
 * 
 * @author SYF
 * @date 2025-04-18
 */
public interface SysYongyouXsfpMapper 
{
    /**
     * 查询销售发票
     * 
     * @param orgname 销售发票主键
     * @return 销售发票
     */
    public SysYongyouXsfp selectSysYongyouXsfpByOrgname(String orgname);

    /**
     * 查询销售发票列表
     * 
     * @param sysYongyouXsfp 销售发票
     * @return 销售发票集合
     */
    public List<SysYongyouXsfp> selectSysYongyouXsfpList(SysYongyouXsfp sysYongyouXsfp);

    /**
     * 新增销售发票
     * 
     * @param sysYongyouXsfp 销售发票
     * @return 结果
     */
    public int insertSysYongyouXsfp(SysYongyouXsfp sysYongyouXsfp);

    /**
     * 修改销售发票
     * 
     * @param sysYongyouXsfp 销售发票
     * @return 结果
     */
    public int updateSysYongyouXsfp(SysYongyouXsfp sysYongyouXsfp);

    /**
     * 删除销售发票
     * 
     * @param orgname 销售发票主键
     * @return 结果
     */
    public int deleteSysYongyouXsfpByOrgname(String orgname);

    /**
     * 批量删除销售发票
     * 
     * @param orgnames 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysYongyouXsfpByOrgnames(String[] orgnames);

    public int deleteByDateRange(@Param("vouchdate") String startDate);
}
